GRANT
The GRANT statement allows you to manage users and permissions.
General format
EXEC SQL [ AT Database ] GRANT Options END-EXEC |
Syntax rules
1. Options is passed to the driver without further checks. Refer to the database documentation for detailed syntax. Syntax errors, if any, are returned at runtime.
General Rules
1. Database identifies the active connection that will execute the query and must be previously defined using a Format 4
DECLARE statement. By default, when the AT clause is used, the active connection is switched to the connection identified by
Database and all the next statements will work on that connection; under the
-csora option, instead, the connection is switched only for the current statement.
Examples
Grant Select and Insert access privilege to a table to some users
exec sql grant select, insert on invoices to usr1, erollands end-exec |